package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "st_low_carbon_knowledge")
public class StLowCarbonKnowledge implements Serializable {
    @Id
    private Integer id;

    @Column(name = "min_image")
    private String minImage;

    @Column(name = "max_image")
    private String maxImage;

    private String title;

    private String details;

    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public StLowCarbonKnowledge(Integer id, String minImage, String maxImage, String title, String details, Date createTime) {
        this.id = id;
        this.minImage = minImage;
        this.maxImage = maxImage;
        this.title = title;
        this.details = details;
        this.createTime = createTime;
    }

    public StLowCarbonKnowledge() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return min_image
     */
    public String getMinImage() {
        return minImage;
    }

    /**
     * @param minImage
     */
    public void setMinImage(String minImage) {
        this.minImage = minImage == null ? null : minImage.trim();
    }

    /**
     * @return max_image
     */
    public String getMaxImage() {
        return maxImage;
    }

    /**
     * @param maxImage
     */
    public void setMaxImage(String maxImage) {
        this.maxImage = maxImage == null ? null : maxImage.trim();
    }

    /**
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * @return details
     */
    public String getDetails() {
        return details;
    }

    /**
     * @param details
     */
    public void setDetails(String details) {
        this.details = details == null ? null : details.trim();
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}